class Options:
    def __init__(self):
        self.options = {}
        self.default_cpp_options()
    
    def default_cpp_options(self):
        self.options["cpp"] = {}
        self.options["cpp"]["machine"] = "-m64"
        self.options["cpp"]["debug"] = "true"
        
    def add_option(self, type, name, opt):
        if self.options is None:
            self.options = {}
        if not self.options.has_key(type):
            self.options[type] = {}
        self.options[type][name] = opt
        
    def get_option(self, type, name):
        if self.options.has_key(type):
            if self.options[type].has_key(name):
                return self.options[type][name]
        return None